<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>

		<script type="text/javascript">
function doQuery() {
	document.form1.action = "${path}/report/team/kpi/index/kpiquery";
	document.form1.submit();
}
$(function() {
	fixTable.FixTable("mytable");
	$("#fullScreen").click(function() {
		fullScreen.FullScreen("mylist");
	});
})
function doExport(type) {
	document.form1.action = "${path}/report/team/kpi/index/getkpiquery?type="+type;
	document.form1.submit();
}
</script>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<form action="" name="form1" method="post">
			<div class="webpart3 contentarea">
				<div class="webpart-head">
					<div class="webpart-head-item">
						KPI追踪
						<div class="tools-btn" style="width: 250px;">
							<a href="####" onclick="doExport('pdf')"><span> <img
										src="${path}/statics/images/dcpdf.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />导出PDF</span> </a>
							<a href="####" onclick="doExport('excel')"><span> <img
										src="${path}/statics/images/dcexcel.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />导出EXCEL</span> </a>
							<a href="####" id="fullScreen"><span> <img
										src="${path}/statics/images/qp.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />全屏</span> </a>
						</div>
					</div>
				</div>
				<div class="webpart-main">
					<div class="webpart-main-item" style="padding-top: 12px;">
						<div class="search">
							<table width="100%" border="0" cellspacing="0" cellpadding="10"
								class="table_form">
								<tr>
									<th align="right">
										<span>姓名 </span>:
									</th>
									<td>
										<input type="text" id="agentname" name="agentname"
											class="inputbox" value="${agentname}" />
									</td>
									<th>
										<span>级别 </span>:
									</th>
									<td>
										<sfa:dic showType="select" kindNo="AGENTLEVELCODE"
											code="${aLevelCode}" def="AGENTLEVELCODE_ALL:全部"
											attr="class='selectbox'" name="agentLevelCode"
											id="agentLevelCode">
										</sfa:dic>
									</td>
									<td align="right">
										<input name="Input" type="button" class="linkbtn2"
											value="查  询" onclick="doQuery()" />
									</td>
								</tr>
							</table>
						</div>


						<div id="mylist" style="height: 365px;" class="dlist">
							<table id="mytable" cellpadding="0" cellspacing="0"
								class="dg_borderstyle  trStyleTable"
								style="margin-top: 0px; text-align: center;">
								<tr>
									<th rowspan="2" name="fixcol" align="center" valign="middle">
										序号
									</th>
									<th style="min-width: 65px; max-width: 50px;" name="fixcol">
										&nbsp;
									</th>
									<th style="min-width: 80px; max-width: 80px;">
										&nbsp;
									</th>
									<th colspan="11" align="center">
										活动人力
									</th>
									<th rowspan="2" align="center" valign="middle">
										持证率
									</th>
									<th colspan="2" align="center">
										签约人力
									</th>
								</tr>
								<tr>									 
									<th width="30" align="center" valign="middle">
										姓名
									</th>
									<th width="30" align="center" valign="middle">
										级别
									</th>
									<th width="1" align="center" valign="middle">
										寿险活动人力&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										综拓活动人力&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										寿险标准人力&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										综拓标准人力&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										标准人力&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										标准活动率&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										主管活动率&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										股东人力&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										股东活动率&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										3月内新人&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										新人活动率&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										当月签约&nbsp;&nbsp;&nbsp;
									</th>
									<th width="1" align="center" valign="middle">
										当月解约&nbsp;&nbsp;&nbsp;
									</th>
								</tr>

								<c:forEach items="${pagination.resultList}" var="l" varStatus="ind">
									<tr>
										<td>${(pagination.page-1)*10+(ind.index+1)}</td>
										<td width="30" align="center" valign="middle">
											${l.agentname}
										</td>
										<td width="1" align="center" valign="middle">
											${l.agentLevel}
										</td>
										<td width="1" align="center" valign="middle">
											${l.activityl}
										</td>
										<td width="1" align="center" valign="middle">
										</td>
										<td width="1" align="center" valign="middle">
										</td>
										<td width="1" align="center" valign="middle">
										</td>
										<td width="1" align="center" valign="middle">
										</td>
										<td width="1" align="center" valign="middle">
										</td>
										<td width="1" align="center" valign="middle">
											-
										</td>
										<td width="1" align="center" valign="middle">
											-
										</td>
										<td width="1" align="center" valign="middle">
											-
										</td>
										<td width="1" align="center" valign="middle">
										</td>
										<td width="1" align="center" valign="middle">
										</td>
										<td width="1" align="center" valign="middle">
										</td>
										<td width="1" align="center" valign="middle">
											${l.monthcontract }
										</td>
										<td width="1" align="center" valign="middle">
											${l.monthCancellation }
										</td>
									</tr>
								</c:forEach>
							</table>
						</div>
						<c:if test="${not empty pagination.multiPage}">
							<div class="dg_pagerstyle">
								<div class="pageinfo">
									第${pagination.page }页 | 共${pagination.totalPages
									}页/${pagination.totalRows }条记录
								</div>
								<div class="pagebtn">
									${pagination.multiPage}
								</div>
							</div>
						</c:if>
					</div>
				</div>
				<div class="webpart-foot">
					<div class="webpart-foot-item">
					</div>
				</div>
			</div>
		</form>
		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>


